from django.contrib import admin
from .models import Animalinfo

# Register your models here.
# admin.site.register(Animalinfo)
class AnimalIno(admin.ModelAdmin):
    # fields = ['sn', 'ip']
    # fieldsets = [
    #     (None, {'fields': ['id']}),
    #     (None, {'fields': ['animal_name']}),
    # ]
    list_display = ('id','animal_name','animal_num')  # add more columns.
    list_filter = ['id']  # add filter function.
    search_fields = ['id','animal_name']  # add search function.


admin.site.register(Animalinfo, AnimalIno)